package tt.lab.pmbok.model;

import org.codehaus.jackson.annotate.JsonIgnore;


public class ProcessTool implements Comparable<ProcessTool>{
	private int id;
	
	private PmbokProcess process;
	private Tool tool;
	public void setTool(Tool tool) {
		this.tool = tool;
	}
	public Tool getTool() {
		return tool;
	}
	public void setProcess(PmbokProcess process) {
		this.process = process;
	}
	@JsonIgnore
	public PmbokProcess getProcess() {
		return process;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public int compareTo(ProcessTool o) {
		if(this.id>o.id) return 1;
		else if (this.id<o.id) return -1;
		else return 0;
	}
}
